package com.vhall.component.service.goods;

import com.vhall.component.entity.goods.LiveGoodsEntity;
import com.vhall.component.entity.goods.goods.GoodsApiSendMessageReqVO;
import com.vhall.component.entity.room.entity.RoomGoodsEntity;

import java.time.LocalDateTime;

/**
 * @author yuanzh
 */
public interface LiveGoodsStatsService {

    /**
     * 处理更新商品次数统计信息
     *
     * @param reqVO       请求参数
     * @param bindInfo    商品绑定信息
     * @param currentTime 当前时间
     * @return true=成功 false=失败
     */
    boolean handleUpdateGoodsStats(GoodsApiSendMessageReqVO reqVO, RoomGoodsEntity bindInfo, LocalDateTime currentTime);

    /**
     * 处理商品统计PV&UV自增1
     *
     * @param bgId        商品id
     * @param ilId        房间id
     * @param currentTime 当前时间
     * @return true=成功 false=失败
     */
    boolean handleIncrGoodsStatsPvUv(int bgId, int ilId, Integer accountId, LocalDateTime currentTime);
}
